/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.panomedic.gui;

import java.awt.AWTEvent;
import java.awt.Frame;
import java.awt.Label;
import java.awt.event.ComponentEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;

/**
 *
 * @author Yare
 */
public class WaitDialog extends JFrame {

    public WaitDialog() {
//        super(owner, modal);
//        JLabel text = new JLabel("Please wait, this can take a while...");
//        this.add(text);
//        setResizable(false);
//        this.setLocation(300, 300);
//        this.setSize(new Dimension(100, 50));
//        this.setLocationRelativeTo(owner);
//        this.setVisible(true);


        super();
        Label lbl = new Label("Please wait, this can take a while...", Label.CENTER);
        this.setUndecorated(true);
        this.add(lbl);
        this.setSize(300, 100);
        this.setLocation(300, 300);
        this.setLocationRelativeTo(null);
//        this.setVisible(true);
//        this.addWindowListener(new WindowAdapter() {
//
//            public void windowClosing(WindowEvent we) {
//                Frame frame = (Frame) we.getSource();
//                frame.dispose();
//            }
//        });
    }
    
//    public void show() {
//        this.show();
//    }
//    
//    public void hide() {
//        this.hide();
//    }
}
